﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ChiTietDonHang.aspx.cs" Inherits="WebApplication1.Admin.ChiTietDonHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div style="width:780px; padding:0px 10px 0 10px;">
<div class="ct_top">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"><h1>Chi tiết đơn hàng</h1></div>
</div> 
 <div class="ct_middle">
 
<table style="padding-top:20px; padding-left:5px; width:760px">
<tr>
<td style="">
    <asp:DataList ID="DtlDonHang" runat="server">
    <ItemTemplate>
       
   
        <table class="chitiet">
        <tr>
        <td colspan="2" style=" font-size:15px; font-weight:bold;text-align:center;">Thông tin đơn hàng</td>
        </tr>
        <tr>
        <td class="name">Mã đơn hàng</td>
        <td class="value"> <asp:Label ID="Label1" runat="server" Text='<%#Eval("Iddonhang") %>'></asp:Label></td>
        </tr>
        <tr>
        <td class="name">Ngày đặt hàng</td>
        <td class="value"> <asp:Label ID="Label2" runat="server" Text='<%#Eval("Ngay") %>'></asp:Label></td>
        </tr>
                <tr>
        <td class="name">Tổng tiền</td>
        <td class="value"> <asp:Label ID="Label3" runat="server" Text='<%#Eval("TongTien","{0:f0}") %>'></asp:Label></td>
        </tr>
                <tr>
        <td class="name">Trạng thái</td>
        <td class="value"> <asp:Label ID="Label4" runat="server" Text='<%#Eval("Trangthai") %>'></asp:Label></td>
        </tr>
        </table>
    </ItemTemplate>
    </asp:DataList>
    
    
</td>

<td>
    <asp:DataList ID="DtlNguoiMua" runat="server">
        <ItemTemplate>
          <center>
        <table class="chitiet">
                <tr>
        <td colspan="2" style=" font-size:15px; font-weight:bold; text-align:center">Thông tin khách hàng</td>
        </tr>
        <tr>
        <td class="name">Mã Khách hàng</td>
        <td class="value"> <asp:Label ID="Label1" runat="server" Text='<%#Eval("Id") %>'></asp:Label></td>
        </tr>
        <tr>
        <td class="name">Họ và tên</td>
        <td class="value"> <asp:Label ID="Label2" runat="server" Text='<%#Eval("Hoten") %>'></asp:Label></td>
        </tr>
                <tr>
        <td class="name">Email</td>
        <td class="value"> <asp:Label ID="Label3" runat="server" Text='<%#Eval("Email") %>'></asp:Label></td>
        </tr>
                <tr>
        <td class="name">Số điện thoại</td>
        <td class="value"> <asp:Label ID="Label4" runat="server" Text='<%#Eval("Sodienthoai") %>'></asp:Label></td>
        </tr>
        </table>
        </center>
    </ItemTemplate>
    </asp:DataList>
</td>
</tr>
<tr><td colspan="2" style="height: 20px;"></td></tr>
<tr>
 <td colspan="2" style=" font-size:15px; font-weight:bold; text-align:center">Sản phẩm đặt mua</td>
</td>
</tr>
<tr>
    <td colspan="2">
    
    <asp:GridView ID="GridView1" Width="740px" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#CCCCCC"  BorderStyle="None" BorderWidth="1px" 
            CellPadding="6">
        <RowStyle ForeColor="Black" />
        
        <Columns>
            <asp:BoundField DataField="Idsanpham" HeaderText="Mã sản phẩm" />
            <asp:BoundField DataField="Tensp" HeaderText="Tên sản phẩm" />
            <asp:BoundField DataField="Kichco" HeaderText="Size" />
            <asp:BoundField DataField="Mausac" HeaderText="Màu sắc" />
            <asp:BoundField DataField="Dongia" DataFormatString="{0:f0}" HeaderText="Đơn giá" />
            <asp:BoundField DataField="Soluong" HeaderText="Số lượng" />
            <asp:BoundField DataField="Thanhtien" DataFormatString="{0:f0}" HeaderText="Tổng tiền" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
</td>
</tr>
</table>

</div>
<div class="ct_bottom">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"></div>
</div>
 </div>

</asp:Content>
